package com.oauth2demo.controller;

import com.oauth2demo.comment.R;
import com.oauth2demo.doman.SysUser;
import com.oauth2demo.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <h3>oauth2Demo</h3>
 * <p>测试</p>
 *
 * @author gdw
 * @since 2024-07-04 10:11:00
 */
@RestController
public class HelloController {
    @Autowired
    private SysUserService service;

    /**
     * 登陆
     * @param sysUser
     * @return
     */
    @PostMapping("/user/login")
    public R login(@RequestBody SysUser sysUser) {
        return service.login(sysUser);
    }

}
